PROJECT(mycache)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

add_definitions(-DMEM_DEBUG)

SET(CMAKE_C_COMPILER "gcc")

SET(C_FLAGS
   -Wall
   -Wextra
   -Werror
   -Wconversion
   -march=native
   -std=c11
   -O0
   -g
)

STRING(REPLACE ";" " " CMAKE_C_FLAGS "${C_FLAGS}")
MESSAGE(C_FLAGS ": " ${CMAKE_C_FLAGS})

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)

ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(test)